package GUI;

import javax.swing.JPanel;
import javax.swing.JLabel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.ImageIcon;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;

public class UpdateAuthorization_GUI extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JButton Cancelbutton;
	private JButton btnSubmit;
	private JTextField User_textField;
	private JComboBox authorization;

	public UpdateAuthorization_GUI() {
		setLayout(null);
		
		JLabel lblNewJgoodiesTitle = DefaultComponentFactory.getInstance().createTitle("Update user authorization");
		lblNewJgoodiesTitle.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblNewJgoodiesTitle.setIcon(new ImageIcon(UpdateAuthorization_GUI.class.getResource("/Picture/user-settings-icon.png")));
		lblNewJgoodiesTitle.setBounds(10, 11, 340, 109);
		add(lblNewJgoodiesTitle);
		
		JLabel lblNewJgoodiesLabel = DefaultComponentFactory.getInstance().createLabel("User ID");
		lblNewJgoodiesLabel.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel.setBounds(10, 168, 88, 14);
		add(lblNewJgoodiesLabel);
		
		User_textField = new JTextField();
		User_textField.setBounds(177, 162, 163, 29);
		add(User_textField);
		User_textField.setColumns(10);
		
		JLabel lblNewJgoodiesLabel_1 = DefaultComponentFactory.getInstance().createLabel("New authorization");
		lblNewJgoodiesLabel_1.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel_1.setBounds(10, 234, 125, 14);
		add(lblNewJgoodiesLabel_1);
		
		Cancelbutton = new JButton("Cancel");
		Cancelbutton.setIcon(new ImageIcon(UpdateAuthorization_GUI.class.getResource("/Picture/Button-Close-icon.png")));
		Cancelbutton.setBounds(10, 326, 141, 47);
		add(Cancelbutton);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(UpdateAuthorization_GUI.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(247, 326, 141, 47);
		add(btnSubmit);
		
		authorization = new JComboBox();
		authorization.setModel(new DefaultComboBoxModel(new String[] {"", "supevisor", "chairman", "committeeMember", "informationEngineer"}));
		authorization.setBounds(177, 228, 163, 29);
		add(authorization);
	}

	public JButton getCancelbutton() {
		return Cancelbutton;
	}

	public void setCancelbutton(JButton cancelbutton) {
		Cancelbutton = cancelbutton;
	}

	public JButton getBtnSubmit() {
		return btnSubmit;
	}

	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}

	public JTextField getUser_textField() {
		return User_textField;
	}

	public void setUser_textField(JTextField user_textField) {
		User_textField = user_textField;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public JComboBox getAuthorization() {
		return authorization;
	}

	public void setAuthorization(JComboBox authorization) {
		this.authorization = authorization;
	}
	
}
